<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="navTable">

    <div class="layui-card-body">

        <div class="layui-form-item">
            <label class="layui-form-label label-required-next">{:lang('上级导航')}</label>
            <div class="layui-input-block">
                <select name='pid' class='layui-select' lay-search>
                    {foreach $menus as $menu}{eq name='menu.id' value='$vo.pid|default=0'}
                    <option selected value='{$menu.id}'>{$menu.spl|raw}{$menu.name}</option>
                    {else}
                    <option value='{$menu.id}'>{$menu.spl|raw}{$menu.name}</option>
                    {/eq}{/foreach}
                </select>
                <p class="help-block"><b>必选</b>，请选择上级导航或顶级导航 ( 目前最多支持三级导航 )</p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('导航名称')}</label>
            <div class="layui-input-block">
                <input name="name" value='{$vo.name|default=""}' required vali-name="{:lang('导航名称')}" placeholder="{:lang('请输入导航名称')}" class="layui-input">
                <p class="help-block"><b>必选</b>，请填写导航名称</p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('导航链接')}</label>
            <div class="layui-input-block">
                <input onblur="this.value=this.value === ''?'':this.value" name="link" required vali-name="{:lang('导航链接')}" placeholder="{:lang('请输入导航链接')}" value="{$vo.link|default=''}" class="layui-input">
                <p class="help-block">
                    <b>必选</b>，请填写链接地址
                </p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('简介')}</label>
            <div class="layui-input-block">
                <textarea name="intro" placeholder="请输入简介" class="layui-textarea">{$vo.intro|default=""}</textarea>
                <p class="help-block"><b>可选</b>，请填写简介</p>
            </div>
        </div>

    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>{:lang('保存数据')}</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="{:lang('确定要取消编辑吗？')}" data-close>{:lang('取消编辑')}</button>
    </div>
</form>